<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>成员信息表</title>   
		<s:include value="../common/source.jsp"></s:include>
		<script src="js/member.js"></script>	
  </head>
  <body>
  <!-- 成员信息表开始 -->
  <div class="body">       
 
  
	 <div class="content ui-sortable">
           <div class="list">
          	成员列表
          	</div>
          	 <br/> 
	    <div class="load0">
	    <form  action="admin/FileCreateAction.action" method="post">
	     <input type="submit" id="down-button" class="sui-btn btn-primary" value="下载Excel"/>
	    </form>
 	  </div>
 	 <!--   <div class="load01">
         <form action="admin/PrintCountTeacherAction.action" method="post">      
        <input type="submit"  value="打印" class="sui-btn btn-primary">
        </form>
        </div>-->
 	  <div class="load01">
         <form action="templates/admin/addTeacher.jsp" method="post">      
        <input type="submit"  value="添加" class="sui-btn btn-primary">
        </form>
        </div>

          	  <br/> 
         <hr style="background-color:#cfe1f9;height:1px;"/> 
	  <table class="sui-table table-primary table-sideheader">
          <thead>
            <tr>
              <th  style="width:4%;text-align:center">序号</th>
              <th>姓名</th>
              <th>专业技术职务</th>
              <th>学位</th>
            <th>入职时间</th>
            <th>方向</th>
            <th colspan="3" style="text-align: center; width:21%">操作</th>
            </tr>
          </thead>
          <tbody>
          <s:iterator value="teachers"> 
            <tr>
             <td style="text-align:center"></td>
              <td><a href="admin/TansferTeacherAction.action?teacher.user=<s:property value="user"/>"><s:property value="name"/></a></td>
              <td><s:property value="duty"/></td>
              <td>
              <s:if test="degree==0">博士</s:if>
              <s:elseif test="degree==1">硕士</s:elseif>
              <s:elseif test="degree==2">学士</s:elseif>
              </td>
              <td><s:date name="inSubDate"  format="yyyy-MM-dd" /></td>
              <td>
              <s:if test="direction==0">控制理论与控制工程</s:if>
              <s:elseif test="direction==1">机器人系统与智能装备</s:elseif>
              <s:elseif test="direction==2">模式识别与智能系统</s:elseif>
              <s:elseif test="direction==3">综合自动化与智能交通</s:elseif>
              </td>
            <td>
            <a href="admin/ReAuthorityAction.action?teacher.teaId=<s:property value="teaId"/>">修改权限</a>
            </td>
             <td>
            <a href="admin/TansferStudentAction.action?teacher.user=<s:property value="user"/>">
                                    查看学生</a></td>                   
               <td>
               <form action="admin/DeleteTeacherAction.action?teacher.teaId=<s:property value="teaId"/>" method="post" onsubmit="return firm()">
               <button type="submit" class="sui-btn "  style="background-color:#FF0000;color:#fff">删除</button>
               </form>
               </td>                     
                                    
                                    </tr>
           </s:iterator>
          </tbody>
        </table>
        
          <!--**************************** 开始进行分页显示 *******************************-->
        	      
        <div align="center" style="font-size: 12px">
         <!-- **************************************全部的分页****************** -->
							<s:if test="currentPage!=1">
								<a href="admin/memberInfo.action?currentPage=1">首页</a> | 
								<a href="admin/memberInfo.action?currentPage=<s:property value="currentPage-1"/>">上一页</a>
							</s:if>
							<s:if test="currentPage!=endPage&&endPage!=0">
								<a href="admin/memberInfo.action?currentPage=<s:property value="currentPage+1"/>">下一页</a> | 
								<a href="admin/memberInfo.action?currentPage=<s:property value="endPage"/>">尾页</a>
							</s:if>
							<s:if test="currentPage==1&&counts==0">
							<div>对不起，你所查找的数据条数为0！</div>
							</s:if>
		 </div>
	</div>
	</div>
		<!-- 成员信息表结束-->   
  </body>
</html>
